﻿using Microsoft.AspNetCore.Mvc;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using up6.db.model;

namespace up6.db.model;

public class Up6Exception : ApplicationException
{
    public JsonResult res = null;
    public Up6Exception(JsonResult r){ this.res = r; }
    public Up6Exception(string msg):base(msg) { }
    public Up6Exception(string msg, FileInf f) : base(msg)
    {
        string json = JsonConvert.SerializeObject(f);//取消格式化
        System.Diagnostics.Debug.WriteLine(json);
    }
}